<?php
require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();
$action = 'root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('zbgl')) {$zbp->ShowError(48);die();}
$blogtitle = '主题配置';

$act = "";
if ($_GET['act']){
$act = $_GET['act'] == "" ? 'zbgl' : $_GET['act'];
}

require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
?>
<div id="divMain">
	<div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu"> <?php zbgl_SubMenu($act);?></div>
	<div id="divMain2">
    <?php
    if ($act == 'ztsm'){
    ?>
    <form id="form1" name="form1" method="post">   
    <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">

      <tr>
        <td colspan="3" scope="col"  height="50" style="color: #003C72; font-weight: bold; font-size: 20px;" ><p align="center">主题说明</p></td>
        </tr>
      <tr>
        <td width="15%" scope="col" height="35"><p align="right">主题名称</p></td>
        <td width="85%" scope="col" height="35"><p align="left">zbgl(孤狼备忘录博客主题模板)</p></td>
      </tr>
      <tr>
        <td width="15%" scope="col" height="35"><p align="right">版本号</p></td>
        <td width="85%" scope="col" height="35"><p align="left">v1.3(2017/5/15日更新)</p></td>
      </tr>
        <td width="15%" scope="col" height="35"><p align="right">主题制作设计</p></td>
        <td width="85%" scope="col" height="35"><p align="left">孤狼</p></td>
      </tr>
         <tr>
           <td width="15%" scope="col" height="35"><p align="right">说明</p></td>
           <td width="85%" scope="col" height="35"><p align="left">这是孤狼为自己博客（孤狼备忘录），制作的Z-Blog PHP程序主题模板。本zbgl主题为免费模板，免费，免费。注：免费使用不得删除“主题版权”和“www.glbwl.com”超链接。</p></td>
        </tr>
    </table>
    </form>
    
    <?php
	 }
	if(isset($_POST['keywords'])){
$zbp->Config('zbgl')->keywords = $_POST['keywords']; 
$zbp->Config('zbgl')->description = $_POST['description'];
$zbp->Config('zbgl')->tpyc = $_POST['tpyc'];
$zbp->Config('zbgl')->tpdx = $_POST['tpdx'];
$zbp->Config('zbgl')->yxrq = $_POST['yxrq'];
$zbp->SaveConfig('zbgl');
$zbp->ShowHint('good');
    }
    if ($act == 'jbpz'){
     ?>
    <form id="form1" name="form1" method="post">
    <table width="100%" style='padding:0;margin:0;' cellspacing='0' cellpadding='0' class="tableBorder">
      <tr>
        <td colspan="3" scope="col"  height="50" style="color: #003C72; font-weight: bold; font-size: 20px;" ><p align="center">基本设置</p></td>
        </tr>
        <tr>
    <th width="15%" scope="col" height="40" style="color: #298FCC; font-weight: bold; font-size: 18px;" ><p align="center">配置名称</p></th>
    <th width="50%" scope="col" height="40" style="color: #298FCC; font-weight: bold; font-size: 18px;" ><p align="center">配置内容</p></th>
    <th width="35%" scope="col" height="40" style="color: #298FCC; font-weight: bold; font-size: 18px;" ><p align="center">配置说明</p></th>
  </tr>
    
    <tr>
    <td  width="15%" scope="col" height="35"><label for="tcdes"><p align="center">首页网站关键词</p></label></td>
    <td  width="50%" scope="col" height="35"><p align="left"><input type="text"  name="keywords"  style="width:95%;"  value="<?php echo $zbp->Config('zbgl')->keywords;?>" /></p></td>
  <td  width="35%" scope="col" height="35"><p align="left">请用英文“,”分开关键词，一般不超过100个字符。</p></td>
  </tr>
  
      <tr>
    <td  width="15%" scope="col" height="35"><label for="tcdes"><p align="center">首页网站描述</p></label></td>
    <td  width="50%" scope="col" height="35"><p align="left"><input type="text"  name="description"  style="width:95%;"  value="<?php echo $zbp->Config('zbgl')->description;?>" /></p></td>
  <td  width="35%" scope="col" height="35"><p align="left">一般不超过200个字符。</p></td>
  </tr>
  <tr>
  <td  width="15%" scope="col" height="35"><label for="tcdes"><p align="center">图片延迟加载开关</p></label></td>
    <td  width="50%" scope="col" height="35"><p align="left"><input type="text"  name="tpyc" value="<?php echo $zbp->Config('zbgl')->tpyc;?>" style="width:89%;" class="checkbox"/></p></td>
  <td  width="35%" scope="col" height="35"><p align="left">文章内容图片延迟加载，默认关闭</p></td>
  </tr>
  <tr>
    <td  width="15%" scope="col" height="35"><label for="tcdes"><p align="center">图片灯箱效果 开关</p></label></td>
    <td  width="50%" scope="col" height="35"><p align="left"><input type="text"  name="tpdx" value="<?php echo $zbp->Config('zbgl')->tpdx;?>" style="width:89%;" class="checkbox"/></p></td>
  <td  width="35%" scope="col" height="35"><p align="left">图片灯箱效果，默认关闭</p></td>
  </tr>
     <tr>
    <td  width="15%" scope="col" height="35"><label for="tcdes"><p align="center">网站运行日期</p></label></td>
    <td  width="50%" scope="col" height="35"><p align="left"><input type="text"  name="yxrq"  style="width:95%;"  value="<?php echo $zbp->Config('zbgl')->yxrq;?>" /></p></td>
  <td  width="35%" scope="col" height="35"><p align="left">日期格式“2014-08-08”网站底部“本站已经运行 N 天 ”设置。</p></td>
  </tr>
  <tr>
    <td colspan="3">
        <input name="" type="Submit" class="button" value="保存"/>
    </td>
  </tr>
</table>
    </form>
    <?php
    }
  ?>
  </div>
</div>
<script type="text/javascript">ActiveTopMenu("topmenu_zbgl");</script> 
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>